package com.lighting.common.core.vo;

import lombok.Data;

@Data
public class RpcException extends Exception {

    private int code;

    public RpcException() {

    }

    public RpcException(BusinessException e) {
        super(e.getMessage());
        this.code = e.getCode();
    }
}
